package com.ybxx.asset.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_asset_land")
public class Land extends BaseModel {
	@Id
	private String lid;
	@ManyToOne(targetEntity=Company.class,fetch=FetchType.LAZY)
	@JoinColumn(name="cid",referencedColumnName="cid") 
	private Company company;
	private String tdzh;
	private String lname;
	private String larea;
	private String hbrq;
	private String bookvalue;
	private String netbookvalue;
	private String mdept;
	private String content;
	public String getLid() {
		return lid;
	}
	public void setLid(String lid) {
		this.lid = lid;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public String getTdzh() {
		return tdzh;
	}
	public void setTdzh(String tdzh) {
		this.tdzh = tdzh;
	}
	public String getLname() {
		return lname;
	}
	public void setLname(String lname) {
		this.lname = lname;
	}
	public String getLarea() {
		return larea;
	}
	public void setLarea(String larea) {
		if(StringUtils.isNotEmpty(larea)){
			this.larea = larea;
		}
	}
	public String getHbrq() {
		return hbrq;
	}
	public void setHbrq(String hbrq) {
		if(StringUtils.isNotEmpty(hbrq)){
			this.hbrq = hbrq;
		}
	}
	public String getBookvalue() {
		return bookvalue;
	}
	public void setBookvalue(String bookvalue) {
		if(StringUtils.isNotEmpty(bookvalue)){
			this.bookvalue = bookvalue;
		}
	}
	public String getNetbookvalue() {
		return netbookvalue;
	}
	public void setNetbookvalue(String netbookvalue) {
		if(StringUtils.isNotEmpty(netbookvalue)){
			this.netbookvalue = netbookvalue;
		}
	}
	public String getMdept() {
		return mdept;
	}
	public void setMdept(String mdept) {
		this.mdept = mdept;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
}
